package thesis.filesharing.dao;

import java.util.List;

import thesis.filesharing.model.Subject;

import com.google.appengine.api.datastore.Key;

public interface SubjectDAO {
	
	public List<Subject> listSubjects(int page, int pageSize);
	public int countSubjects();
	public Subject findSubjectById(String subjectId);
	public Subject findSubjectByKey(Key subjectKey);
	public Subject saveSubject(Subject subject);
	public void deleteSubject(Key subjectKey);
	public Subject updateSubject(Subject subject);
	public boolean checkUpdatedSubjectExisted(Key subjectKey, String subjectId);
}
